package com.setDemo.hashSet;

import java.util.HashSet;

/**
 * @Author milian
 * @Date 2021/7/26 0026 17:07
 */
public class demo1 {
    public static void main(String[] args) {
        HashSet<String> hashSet = new HashSet<>();
        hashSet.add("hello");
        hashSet.add("world");
        hashSet.add("java");
        for (String s:hashSet
             ) {
            System.out.println(s);
        }

    }
}
